import React from 'react'
// ===================================================================== Temp
import FormModal from '#cpt/temp/FormModal'
// ===================================================================== global declare
const { $Lazy } = window
// ===================================================================== $Lazy
const $cache 			= $Lazy.file(()=>import('#private/cache-api'))
// ===================================================================== component
class Index extends React.Component{
	state = {
		data: [],
		// 条码作废
		formData:[
			{ label: '文件等级',	full:true,	name: 'time', 	type:'select', 	loading:true }
		],
	}
	submit = {}
	open = ()=> {
		this.getModalSelect()
		this.modal.open({formRef: this.formRef})
	}
	
	// 弹窗获取下拉数据
	getModalSelect = async () => {
		const { formData } = this.state
		$cache.then( async f => {
			// $fn.setRow( formData, 'perm_user', await f.getCache({ api:'employee' }) )
			this.setState({ formData })
		})
	}
	
	render(){
		return FormModal.call(this, {title:'文件等级', labelWidth:'s5', width:600, api:'',
			
		} )
	}
}

export default Index